/******************************************************************************
	Definition of II_Meter Custom Control class

	(C) Copyright 2007. Ian Sanderson
		All rights reserved.
 ******************************************************************************/

#pragma		once

namespace	II_Controls		{

using	namespace	System::Windows::Forms;
using	namespace	System::Drawing;

public	ref class	II_Meter	:
		public	System::Windows::Forms::Control
{
//		Attributes
private			:

	short		II_Meter_NPosition;
	short		II_Meter_NMinPosition;
	short		II_Meter_NMaxPosition;
	short		II_Meter_nPosition;

//		Properties
public			:

	property	short	NPosition	{
		short		get	()		{
			return		II_Meter_NPosition;
		}
		void		set	(short	Value)	{
			II_Meter_NPosition	=	Value;
				
			Invalidate ();
		}
	}

	property	short	NMaxPosition	{
		short		get	()		{
			return		II_Meter_NMaxPosition;
		}
		void		set	(short	Value)	{
			II_Meter_NMaxPosition	=	Value;
				
			Invalidate ();
		}
	}

	property	short	NMinPosition	{
		short		get	()		{
			return		II_Meter_NMinPosition;
		}
		void		set	(short	Value)	{
			II_Meter_NMinPosition	=	Value;
				
			Invalidate ();
		}
	}

	Color		GetBackColor	();
	void		SetBackColor	(Color);
	Color		GetForeColor	();
	void		SetForeColor	(Color);

protected			:

virtual		void		OnPaint		(
		PaintEventArgs^		e
		)	override;
};

}